package com.woniuxy.dao;

import com.woniuxy.entity.ExamJoinInfo;
import com.woniuxy.entity.ExamPublishexam;

import java.util.List;

/**
 * @author wenlei
 * @ClassName ExamDao
 * @Description TODO
 * @date 2022/5/4 16:07
 **/
public interface ExamDao {
    //增加考试
    public int insertExamPublishexam(ExamPublishexam examPublishexam);
    //增加考试中的学生 考试id与学生id关联
    int addExamJoinInfo(List<ExamJoinInfo> lists);
    //按条件  查询考试信息
    List<ExamPublishexam> findByCondition(ExamPublishexam examPublishexam);
    //删除考试  修改isdelete
    int updateIsdelete(int id);
    //查询所有考试信息
    List<ExamPublishexam> findAll();
    //修改考试信息
    int updateExam(ExamPublishexam examPublishexam);
    //批量删除考试信息
    int updateExamIsdelete(List<Integer> ids);
}
